package request

type Rating struct {
	OrderId    uint32 `json:"order_id" form:"order_id" binding:"required"`
	RaterId    uint32 `json:"rater_id" form:"rater_id" binding:"required"`
	TargetId   uint32 `json:"target_id" form:"target_id" binding:"required"`
	RatingType int32  `json:"rating_type" form:"rating_type" binding:"required"`
	Score      int32  `json:"score" form:"score" binding:"required"`
	Comment    string `json:"comment" form:"comment" binding:"required"`
	Tags       string `json:"tags" form:"tags"`
	Images     string `json:"images" form:"images"`
}
type GetRatingsByTargetId struct {
	TargetId   uint32 `json:"target_id" form:"target_id" binding:"required"`
	RatingType int32  `json:"rating_type" form:"rating_type"`
}
type GetAverageRating struct {
	TargetId   uint32 `json:"target_id" form:"target_id" binding:"required"`
	RatingType int32  `json:"rating_type" form:"rating_type" binding:"required"`
}
type GetRatingByOrder struct {
	OrderId    uint32 `json:"order_id" form:"order_id" binding:"required"`
	RatingType int32  `json:"rating_type" form:"rating_type" binding:"required"`
}
type EmergencyHelp struct {
	OrderId     uint32 `json:"order_id" form:"order_id" binding:"required"`
	UserId      uint32 `json:"user_id" form:"user_id"`
	Location    string `json:"location" form:"location" binding:"required"`
	Description string `json:"description" form:"description" binding:"required"`
}
type ShareTrip struct {
	OrderId   uint32 `json:"order_id" form:"order_id" binding:"required"`
	UserId    uint32 `json:"user_id" form:"user_id"`
	ShareTo   string `json:"share_to" form:"share_to" binding:"required"`
	ShareType string `json:"share_type" form:"share_type" binding:"required"`
}
type GetInsuranceInfo struct {
	OrderId uint32 `json:"order_id" form:"order_id" binding:"required"`
}
type GetUserScheduledOrders struct {
	UserId uint32 `json:"user_id" form:"user_id"`
}
type CancelScheduledOrder struct {
	OrderId uint32 `json:"order_id" form:"order_id" binding:"required"`
	UserId  uint32 `json:"user_id" form:"user_id"`
}
